package chat.constant;

import java.net.Socket;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CommonConst {
    /**
     * 端口
     */
    public static final int PORT = 8888;

    /**
     * 服务器地址
     */
    public static final String SERVER_HOST = "127.0.0.1";

    /**
     * 登录成功
     */
    public static final String SUCCESS = "登录成功!";
    /**
     * 登录失败
     */
    public static final String FAIL = "登录失败!";

    /**
     * 退出登录
     */
    public static final String EXIT = "EXIT";

    /**
     * 密码
     */
    public static final String DEFAULT_PASSWORD = "123";

    /**
     * 服务端用户名
     */
    public static final String SERVER = "server";

    /**
     * 空
     */
    public static final String BLACK = "";

    /**
     * OK
     */
    public static final String OK = "OK";

    /**
     * 在线用户
     */
    public static final Map<String, Socket> ONLINE_USER = new ConcurrentHashMap<>();


    /**
     * 用户不存在
     */
    public static final String USER_NOT_FOUND = "用户不存在！";




}
